package com.hangkong.service.impl;

import com.hangkong.dao.UserDao;
import com.hangkong.dao.tuserMapper;
import com.hangkong.model.User;
import com.hangkong.model.tuser;
import com.hangkong.service.UserService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by wangshuai on 2017/9/4.
 */

@Service
@Transactional(rollbackFor = Exception.class)
public class UserServiceImpl implements UserService {
    
    @Resource
    private tuserMapper tuserMapper;

    public tuser login(String userName, String userPwd)
    { return tuserMapper.selectUserByUserPsw(userName,userPwd); }

}
